﻿<%@ Page Language="C#" MasterPageFile="~/MasterALSafa.Master"AutoEventWireup="true" CodeBehind="SRV_BOOKS_RECEIVINGByCode.aspx.cs" Inherits="School.Pages.BOOKS.SRV_BOOKS_RECEIVINGByCode" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
    <div>
    <table  align="right" dir="rtl">
        <tr>
            <td style="width: 85px">
                كود الكتاب
            </td>
            <td>
                <asp:TextBox ID="txtCode" runat="server" MaxLength="40" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCode"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="bu">*</asp:RequiredFieldValidator>
            </td>
            <td style="width: 45px; padding-right: 25px;">
                الكميه
            </td>
            <td>
                <asp:TextBox ID="txtQty" onkeypress="return FilterInt(this, event)" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtQty"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="bu">*</asp:RequiredFieldValidator>
            </td>
            <td style="width: 85px; padding-right: 25px;">
                <asp:Button ID="btnAddQty" Width="90" ValidationGroup="bu" runat="server" 
                    Text="اضافه" CssClass="graybutton" onclick="btnAddQty_Click" />
            </td>
        </tr>
        <tr>
        <td colspan="5">
        
            <asp:Label ID="lblError" runat="server" ForeColor="#00CC00"></asp:Label>
        
        </td>
        </tr>
        <tr>
            <td colspan="5">
                <asp:GridView ID="gvData" runat="server" Width="600px" DataKeyNames="Key"
                        AutoGenerateColumns="False" CssClass="Grid"
                    HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
                    PagerStyle-CssClass="GridPager" 
                    AlternatingRowStyle-CssClass="GridItemAltername" 
                    onrowcommand="gvData_RowCommand" onrowdeleting="gvData_RowDeleting">
                        <Columns>
                           <asp:BoundField DataField="Key" HeaderText="الكود" />
                            <asp:BoundField DataField="Value" HeaderText="الكميه" />
                            <asp:TemplateField>
                            <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                        CommandName="DoDelete" Text="حذف"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                  </asp:GridView>
            </td>
        </tr>
        <tr>
        <td colspan="5" style="padding-right:300px;height:40px;padding-top:10px;">
            <asp:Button ID="btnSaveChanges" Width="80" runat="server" Text="حفظ" 
               CssClass="graybutton" onclick="btnSaveChanges_Click"/>
        </td>
        </tr>
    </table>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
